﻿/*----------------------------------------------------------------
//  <copyright file="UserInputDtoBase.cs" company="MicroCloud@151504200868">
//      Copyright © 2020-2024 MicroCloud Corporation, All rights reserved.
//  </copyright>
//  <site>https://gitee.com/chenmm123/microclouds</site>
//  <last-editor>cmm</last-editor>
//  <last-date>2023-09-19 08:37</last-date>
//----------------------------------------------------------------*/

namespace MicroCloud.Identity.Dtos
{
    #region "用户信息输入DTO基类"
    /// <summary>
    /// 用户信息输入DTO基类
    /// </summary>
    public abstract class UserInputDtoBase<TUserKey> : IInputDto<TUserKey>
    {
        #region "属性"
        #region "获取或设置 用户编号"
        /// <summary>
        /// 获取或设置 用户编号
        /// </summary>
        [DisplayName("用户编号")]
        public TUserKey Id { get; set; }
        #endregion

        #region "获取或设置 用户名"
        /// <summary>
        /// 获取或设置 用户名
        /// </summary>
        [Required, DisplayName("用户名")]
        public string UserName { get; set; }
        #endregion
        #region "获取或设置 用户昵称"
        /// <summary>
        /// 获取或设置 用户昵称
        /// </summary>
        [DisplayName("用户昵称")]
        public string NickName { get; set; }
        #endregion

        #region "获取或设置 电子邮箱"
        /// <summary>
        /// 获取或设置 电子邮箱
        /// </summary>
        [DisplayName("电子邮箱")]
        public string Email { get; set; }
        #endregion
        #region "获取或设置 邮箱是否已确认"
        /// <summary>
        /// 获取或设置 邮箱是否已确认
        /// </summary>
        [DisplayName("邮箱确认")]
        public bool EmailConfirmed { get; set; }
        #endregion
        #region "获取或设置 手机号码"
        /// <summary>
        /// 获取或设置 手机号码
        /// </summary>
        [DisplayName("手机号码")]
        public string PhoneNumber { get; set; }
        #endregion
        #region "获取或设置 手机是否已确认"
        /// <summary>
        /// 获取或设置 手机是否已确认
        /// </summary>
        [DisplayName("手机确认")]
        public bool PhoneConfirmed { get; set; }
        #endregion

        #region "获取或设置 密码"
        /// <summary>
        /// 获取或设置 密码
        /// </summary>
        public string Password { get; set; }
        #endregion

        #region "获取或设置 是否启用登录锁"
        /// <summary>
        /// 获取或设置 是否启用登录锁
        /// </summary>
        [DisplayName("启用登录锁")]
        public bool LockoutEnabled { get; set; }
        #endregion
        #region "获取或设置 是否锁定"
        /// <summary>
        /// 获取或设置 是否锁定
        /// </summary>
        [DisplayName("是否锁定")]
        public bool IsLocked { get; set; }
        #endregion

        #endregion

    }
    #endregion

}
